import SDKAdatper from "../core/SDKAdatper";
import RecorderAdapter from "../core/RecorderAdapter";
class TTRecorderAdapter extends RecorderAdapter {
    publish(param?: any) {

    }
}
export default class TTSDK extends SDKAdatper {

    hasRecorder() {
        return this.hasSDK() && this._sdk.getGameRecorderManager
    }

    getGameRecorderManager() {
        if (this.hasRecorder()) {
            return new TTRecorderAdapter(this._sdk.getGameRecorderManager());
        }
        return null;
    }

    createMoreGamesButton(obj: any) {
        if (this.hasSDK() && this._sdk.createMoreGamesButton) {
            return this._sdk.createMoreGamesButton(obj)
        }
        return null;
    }

    showMoreGamesModal(obj: any) {
        if (this.hasSDK() && this._sdk.showMoreGamesModal) {
            this._sdk.showMoreGamesModal(obj)
        }
    }
}
